package com.dataart;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;



// please run app.
public class ServiceActivity extends Activity
{
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
    }

    public void buttonStartClick(View v) {
        Log.v(this.getClass().getName(), "onClick: Starting service.");
        startService(new Intent(this, YahooWeatherService.class));
        //todo: to start application
        //todo: check service is started
    }

    public void buttonStopClick(View v) {
        Log.v(this.getClass().getName(), "onClick: Stopping service.");
        stopService(new Intent(this, YahooWeatherService.class));
    }
}
